<?php
/**
 * Created by PhpStorm.
 * User: Happy
 * Date: 2016/5/18 0018
 * Time: 14:07
 * 配置参数
 */
return array(
    'name' => '测试公众号',
    'app_id' => 'wx0d007463ea784623',  //测试公众号
    'app_secret' => '01cf54681523a226984afff6b881d176', //测试公众号
    'token'=>'wechat',
    'access_tocken_timeout'=>7000,//accesstocken过期时间，默认两小时过期，设置成7000秒
    'cache_location'=>'local',  //如果按照默认设置在存储在本地，否则存储在指定的位置

    'util_plugin'=>'util', //插件依赖


    'TOKEN_URL'=>'https://api.weixin.qq.com/cgi-bin/token',
    'MENU_URL'=>'https://api.weixin.qq.com/cgi-bin/menu/create',
    'USER_LIST_URL'=>'https://api.weixin.qq.com/cgi-bin/user/get',
    'USER_INFO_URL'=>'https://api.weixin.qq.com/cgi-bin/user/info',
    'BATCH_MATERIAL_URL'=>'https://api.weixin.qq.com/cgi-bin/material/batchget_material',
     'JS_API_TICKET_URL'=>'https://api.weixin.qq.com/cgi-bin/ticket/getticket',
     'OPENID_TOKEN_URL'=>'https://api.weixin.qq.com/sns/oauth2/access_token',

      'jsApiList'=>array('scanQRCode'),// 必填，需要使用的JS接口列表，所有JS接口列表见附录2,get_config_json()函数中使用
       //默认菜单样例，设置样例
       'menu' =>array(
      'button' => array(
          array(
              "name" => "关于",
              "sub_button" => array(
                  array(
                      "type" => Button_Type::view,
                      "name" => "签名测试",
                      'url' => 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0d007463ea784623&redirect_uri=http://101.37.85.246/mweichat/wechat/control.php?act=scanner&response_type=code&scope=snsapi_base&state=123#wechat_redirect'
                  ),
                  array(
                      "type" => Button_Type::view,
                      "name" => "联系我们",
                      'url' => 'http://www.baidu.com'
                  )
              )
          ),

          array(
              "name" => "怡柔花絮",
              "sub_button" => array(
                  array(
                      'name'=>'签到',
                      'type'=>Button_Type::view,
                      'url'=>'http://101.37.85.246/redirect.html'
                  ),
                  array(
                      'name'=>'信息',
                      'type'=>Button_Type::view,
                      'url'=>'http://www.baidu.com'
                  )
              )

          ),
          array(
              "name" => "操作",
              "sub_button" => array(
                  array(
                      'name'=>'点击',
                      'type'=>Button_Type::click,
                      'key'=>'scan_surprise'
                  ),

                  array(
                      'name'=>'测试2',
                      'type'=>Button_Type::click,
                      'key'=>'buy_give'
                  )
              )
          )
      )
    ),
    );


